# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=simplescreenrecorder
pkgver=0.4.2
pkgrel=0
pkgdesc="SimpleScreenRecorder a screen recorder for Linux "
url="http://www.maartenbaert.be/simplescreenrecorder/"
arch="x86_64 x86" #disabled for the other architectures due to compiling problems
license="GPL-3.0-only"
makedepends="cmake make pkgconfig qt5-qtbase-dev ffmpeg-dev alsa-lib-dev pulseaudio-dev
	jack-dev mesa-dev glu-dev libx11-dev libxfixes-dev libxext-dev libxi-dev
	libxinerama-dev qt5-qttools-dev qt5-qtx11extras-dev"
subpackages="$pkgname-doc"
options="!check" # make check not implemented
source="$pkgname-$pkgver.tar.gz::https://github.com/MaartenBaert/ssr/archive/$pkgver.tar.gz"
builddir="$srcdir/ssr-$pkgver"

build() {
	cmake -B build . \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None \
		-DWITH_QT5=on \
		-DCMAKE_INSTALL_LIBDIR=lib
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="60b0127d7f82f294e5a8f015363e37a10b5492089a0178b07a5e383c7e4b857102ed2bda7a95e3c67293a255f892481aeaf4037c583320d68d463637348ed7f7  simplescreenrecorder-0.4.2.tar.gz"
